package com.sinaapp.aidaka.server.model;

public enum UserGender {
	
	UNKOWN(0), 
	MALE(1), 
	FEMALE(2);
	
	private int value;
	public int getValue() {
		return value;
	}
	private UserGender(int i) {
		this.value = i;
	}

	public static UserGender getUserGenderByValue(int value) {
		switch (value) {
		case 1:
			return MALE;
		case 2:
			return FEMALE;
		default:
			return UNKOWN;
		}
	}
}
